package com.hb.trade.api.push.util;/*
 * @description: 常量表
 *
 * @author: Chen Xinmin
 *
 * @create: 2020-05-27 15:37
 **/

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantUtil {

    //内置机阿里内网 线上
    public static String HOSTNAME;

    //sftp 内网
    public static String SFTP_HOSTNAME;

    //数据推送接口地址
    public static String URL;

    //pdf路径
    public static String PATHNAME;

    @Value("${ali.hostname}")
    public void setHostName(String hostName){
        HOSTNAME = hostName;
    }

    @Value("${ali.sftphostname}")
    public void setSftpHostName(String sftpHostName){
        SFTP_HOSTNAME = sftpHostName;
    }

    @Value("${ali.url}")
    public void setUrl(String url){
        URL = url;
    }

    @Value("${ali.pathname}")
    public void setPathName(String pathName){
        PATHNAME = pathName;
    }

    public static final int PORT = 22;
    public static final String USERNAME = "ctpsp";
    public static final String PASSWORD = "ctpsp@1234";

    //当前平台编号
    public static String SOURCE_SYSTEM_ID = "M3701020925";
    //目标平台编号
    public static String TARGET_SYSTEM_ID_TEST = "A1100000001";


    //交易类型======
    //1.招标项目
    public static String TENDER_PROJECT_PHASE = "tenderProjectPhase";
    //2.招标公告
    public static String TENDER_BULLETIN_PHASE = "tenderBulletinPhase";
    //3.资格预审公告
    public static String QUALIFY_BULLETIN_PHASE = "qualifyBulletinPhase";
    //4.中标候选人公示
    public static String WIN_CANDIDATE_BULLETIN_PHASE = "winCandidateBulletinPhase";
    //5.标结果公示阶段
    public static String WIN_BID_BULLETIN_PHASE = "winBidBulletinPhase";
}
